#!/bin/bash

domain=$1
/usr/bin/curl  --connect-timeout 2 -skI $domain |awk  '/HTTP/  {print$2}'